<div class="wide form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
)); ?>

	<div class="row">
		<?php echo $form->label($model,'codigo'); ?>
		<?php echo $form->textField($model,'codigo',array('size'=>20,'maxlength'=>20)); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'rif'); ?>
		<?php echo $form->textField($model,'rif',array('size'=>20,'maxlength'=>20)); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'razonsocial'); ?>
		<?php echo $form->textField($model,'razonsocial',array('size'=>60,'maxlength'=>150)); ?>
	</div>


	<div class="row">
		<?php echo $form->label($model,'tipocliente'); ?>
		<?php echo $form->dropDownList($model,'tipocliente',$model->obtenerTipoCliente(),array('empty'=>'--Seleccione--')); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'tb_estatus_idtb_estatus'); ?>
		<?php echo $form->dropDownList($model,'tb_estatus_idtb_estatus',$model->obtenerEstados(),array('empty'=>'--Seleccione--')); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton('Buscar'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- search-form -->